home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / DCLAP 6d / dclap6d / corelib / ncbilcl.codewar < prev    next >
Text File  |  1996-07-05  |  5KB  |  137 lines

  1. /*   ncbilcl.h
  2. * ===========================================================================
  3. *
  4. *                            PUBLIC DOMAIN NOTICE
  5. *               National Center for Biotechnology Information
  6. *
  7. *  This software/database is a "United States Government Work" under the
  8. *  terms of the United States Copyright Act.  It was written as part of
  9. *  the author's official duties as a United States Government employee and
  10. *  thus cannot be copyrighted.  This software/database is freely available
  11. *  to the public for use. The National Library of Medicine and the U.S.
  12. *  Government have not placed any restriction on its use or reproduction.
  13. *
  14. *  Although all reasonable efforts have been taken to ensure the accuracy
  15. *  and reliability of the software and data, the NLM and the U.S.
  16. *  Government do not and cannot warrant the performance or results that
  17. *  may be obtained by using this software or data. The NLM and the U.S.
  18. *  Government disclaim all warranties, express or implied, including
  19. *  warranties of performance, merchantability or fitness for any particular
  20. *  purpose.
  21. *
  22. *  Please cite the author in any work or product based on this material.
  23. *
  24. * ===========================================================================
  25. *
  26. * File Name:  ncbilcl.h
  27. *
  28. * Author:  Gish, Kans, Ostell, Schuler
  29. *
  30. * Version Creation Date:   1/1/91
  31. *
  32. * $Revision: 2.5 $
  33. *
  34. * File Description:
  35. *        system dependent header
  36. *        THINK C version
  37. *
  38. * Modifications:
  39. * --------------------------------------------------------------------------
  40. * Date     Name        Description of modification
  41. * -------  ----------  -----------------------------------------------------
  42. *
  43. * ==========================================================================
  44. */
  45. #ifndef _NCBILCL_
  46. #define _NCBILCL_
  47.  
  48. /* PLATFORM DEFINITION FOR MACINTOSH UNDER CodeWarrior (formerly THINK C) */
  49.  
  50.  
  51. /* #define COMP_THINKC */
  52. #define PATH_MAX 512  /* this should be def for all Mac types -- default is 64 */
  53. #define COMP_CODEWAR
  54. #define OS_MAC
  55. #define PROC_MC680X0
  56. #define PROC_PPC
  57. #define WIN_MAC
  58.  
  59. //#ifndef powerc
  60. #define USE_MAC_MEMORY /* must be consistent w/ C++ New function */
  61. //#endif
  62.  
  63. /*----------------------------------------------------------------------*/
  64. /*      Desired or available feature list                               */
  65. /*----------------------------------------------------------------------*/
  66.  
  67. /* CodeWarrior compiler needs some definitions of what should be undefined... */
  68. #define LIBCALL
  69. #define FAR
  70.  
  71.  
  72. /*----------------------------------------------------------------------*/
  73. /*      #includes                                                       */
  74. /*----------------------------------------------------------------------*/
  75. #include <stdio.h>
  76. #include <ctype.h>
  77. #include <stdlib.h>
  78. #include <string.h>
  79. #include <math.h>
  80. #include <errno.h>
  81. #include <limits.h>
  82. #include <float.h>
  83. //#include <pascal.h>
  84.  
  85. /*----------------------------------------------------------------------*/
  86. /*      Missing ANSI-isms                                               */
  87. /*----------------------------------------------------------------------*/
  88. #ifndef FILENAME_MAX
  89. #define FILENAME_MAX 255
  90. #endif
  91.  
  92. /*----------------------------------------------------------------------*/
  93. /*      Aliased Logicals, Datatypes                                     */
  94. /*----------------------------------------------------------------------*/
  95.  
  96. /*----------------------------------------------------------------------*/
  97. /*      Misc Macros                                                     */
  98. /*----------------------------------------------------------------------*/
  99. #define PROTO(x)    x    /* Function prototypes are real */
  100. #define VPROTO(x)    x    /* Prototype for variable argument list */
  101. #define DIRDELIMCHR    ':'
  102. #define DIRDELIMSTR    ":"
  103. #define CWDSTR    "."
  104.  
  105. #define KBYTE    (1024)
  106. #define MBYTE    (1048576L)
  107.  
  108. #define IS_BIG_ENDIAN
  109.  
  110. /*----------------------------------------------------------------------*/
  111. /*      For importing MS_DOS code                                       */
  112. /*----------------------------------------------------------------------*/
  113. #define near
  114. #define far
  115. #define huge
  116. #define cdecl
  117. #define _pascal
  118. #define _near
  119. #define _far
  120. #define _huge
  121. #define _cdecl
  122.  
  123. /*----------------------------------------------------------------------*/
  124. /*      Macros for Floating Point                                       */
  125. /*----------------------------------------------------------------------*/
  126. #define EXP2(x) exp((x)*LN2)
  127. #define LOG2(x) (log(x)*(1./LN2))
  128. #define EXP10(x) exp((x)*LN10)
  129. #define LOG10(x) (log(x)*(1./LN10))
  130.  
  131. /*----------------------------------------------------------------------*/
  132. /*      Macros Defining Limits                                          */
  133. /*----------------------------------------------------------------------*/
  134. #define MAXALLOC    0x40000000 /* Largest permissible memory request */
  135.  
  136. #endif
  137.